package com.zcf.mapper;

import com.zcf.pojo.Evaluate;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author zhouzhuang
 * @since 2018-12-11
 */
public interface EvaluateMapper extends BaseMapper<Evaluate> {

	/**
	 * 用户查询评论
	 */
	List<Evaluate> queryEvalute(@Param("userId") String userId, @Param("dinId") String dinId);

	int dinCount(@Param("dinId") String dinId);

	int ridingCount(@Param("ridingId") String ridingId);
}
